home *** CD-ROM | disk | FTP | other *** search
/ Champak 99 / (Vol 99) Jan 19 2010.iso / Games / balls.swf / scripts / frame_5 / PlaceObject2_20_75 / CLIPACTIONRECORD onClipEvent(load).as
Text File  |  2010-01-19  |  2KB  |  71 lines

  1. onClipEvent(load){
  2.    title_text = "Submit Score";
  3.    this.rollArea.onRelease = function()
  4.    {
  5.       if(_root.name != "Name" && _root.score != 0)
  6.       {
  7.          var _loc3_ = _root.name;
  8.          while(_loc3_.charAt(0) == " ")
  9.          {
  10.             _loc3_ = _loc3_.slice(1);
  11.          }
  12.          if(_root.bonusGive == true)
  13.          {
  14.             if(bonusAdd == 3000)
  15.             {
  16.                _loc3_ = "  " + _loc3_;
  17.             }
  18.             else
  19.             {
  20.                _loc3_ = " " + _loc3_;
  21.             }
  22.             _root.score += _root.bonusAdd;
  23.             _root.bonusAddr = _root.bonusAdd;
  24.             _root.bonusAdd = 0;
  25.             _root.friend_button._visible = true;
  26.             _root.friend_button._alpha = 360;
  27.             _root.friend_button.onEnterFrame = function()
  28.             {
  29.                this._alpha -= 2;
  30.                if(this._alpha < 0)
  31.                {
  32.                   this._visible = false;
  33.                }
  34.             };
  35.          }
  36.          ab20_09 = new LoadVars();
  37.          ab20_09.z = _loc3_;
  38.          ab20_09.x = _root.score;
  39.          ab20_09.c = 970;
  40.          ab20_09.v = "RHUPYX";
  41.          ab20_09.sendAndLoad("http://armorbot.com/s_b",ab20_09,"POST");
  42.          ab20_09 = new LoadVars();
  43.          ab20_09.z = _loc3_;
  44.          ab20_09.x = ab20.encodeNum(_root.score);
  45.          ab20_09.c = 979;
  46.          ab20_09.v = "ERELIO";
  47.          ab20_09.sendAndLoad("http://armorbot.com/s_b",ab20_09,"POST");
  48.          _root.score = 0;
  49.          _root.scoreboard.gotoAndPlay(2);
  50.          _root.name_button.onEnterFrame = _root.score_button.onEnterFrame = this._parent.onEnterFrame = function()
  51.          {
  52.             this._alpha -= 3;
  53.             if(this._alpha < 0)
  54.             {
  55.                this._visible = false;
  56.             }
  57.          };
  58.          _root.menu_button._visible = true;
  59.          _root.menu_button.onEnterFrame = function()
  60.          {
  61.             this._alpha += 3;
  62.             if(this._alpha > 100)
  63.             {
  64.                this._alpha = 100;
  65.                delete this.onEnterFrame;
  66.             }
  67.          };
  68.       }
  69.    };
  70. }
  71.